package com.yjd.job.service;

import java.util.Map;

import com.yjd.comm.base.model.PagerModel;
import com.yjd.comm.base.service.IBaseService;
import com.yjd.job.model.JobLogModel;

/**
 * job日志服务
 * 
 * @author ready
 * @date 2014-8-8
 */
public interface IJobLogService extends IBaseService {
	/**
	 * 新增
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public JobLogModel insert(JobLogModel model) throws Exception;

	/**
	 * 根据文件服务id删除对象
	 * 
	 * @param idFsService
	 *            文件服务id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long idFsService) throws Exception;

	/**
	 * 根据Map中的参数删除对象
	 * 
	 * @param paramMap
	 * @return
	 * @throws Exception
	 */
	public int deleteByMap(Map<Object, Object> paramMap) throws Exception;

	/**
	 * 新增
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(JobLogModel model) throws Exception;
	
	
	public PagerModel getFailedJobLogPage(Map paramMap) throws Exception ;
}
